import request from "@/utils/requestBase";

/**
 * @description 民警状态及其他数据统计
 */
export function policeStatusStat() {
  return request.get({
    url: "/police-user/selectDutyCount",
  });
}

/**
 * @description 查询所有社区所有民警
 */
export function allPoliceOfCommunity(data: any) {
  return request.get({
    url: "/police-user/selectAll",
    data,
  });
}

/**
 * @description 根据社区ID查询民警选择列表
 */
export function policeListByCommunityId(data: any) {
  return request.get({
    url: "/police-user/selectListByCommunityId",
    data,
  });
}

/**
 * @description 查询社区民警-群众首页
 */
export function selectIndexPoliceUser(data: any) {
  return request.get({
    url: "/police-index/selectIndexPoliceUser",
    data,
  });
}

/**
 * @description 未读统计
 */
export function getNoReadCount(data: any) {
  return request.get({
    url: "/police-index/getNoReadCount",
    data,
  });
}

/**
 * @description 状态设置
 */
export function setPoliceStatus(data: any) {
  return request.put({
    url: "/police-index/updateDutyStatus",
    data,
  });
}

/**
 * @description 获取民警打卡提示
 */
export function getPoliceClockTip(data: any) {
  return request.get({
    url: "/police-index/punchPromot",
    data,
  });
}
export function snapshotunreadNums(data: any) {
  return request.put({
    url: "/snapshot/unreadNums",
    data,
  });
}
